package com.morehair.bean.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
@Data
public class Storage {

    public Storage(Integer id, String key, String name, String type, Integer size, String url, Date addTime, Date updateTime, Boolean deleted) {
        this.id = id;
        this.key = key;
        this.name = name;
        this.type = type;
        this.size = size;
        this.url = url;
        this.addTime = addTime;
        this.updateTime = updateTime;
        this.deleted = deleted;
    }

    private Integer id;

    private String key;

    private String name;

    private String type;

    private Integer size;

    private String url;
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date addTime;
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    private Boolean deleted;

}